package com.hjc.springbootmovies.service.Impl;

import com.hjc.springbootmovies.entity.ModelHall;
import com.hjc.springbootmovies.mapper.MappingHall;
import com.hjc.springbootmovies.service.HallService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: HJC
 * Date: 2019/12/6
 * Time: 8:15
 * To change this template use File | Settings | File Templates.
 */
@Service
public class HallServiceImpl implements HallService {
    @Autowired
    private MappingHall mappingHall;
    @Override
    public List<ModelHall> queryHall() {
        return mappingHall.queryHall();
    }

    @Override
    public int addHall(ModelHall modelHall) {
        return mappingHall.addHall(modelHall);
    }

    @Override
    public int deleteById(int tid) {
        return mappingHall.deleteById(tid);
    }

    @Override
    public int updateHall(ModelHall modelHall) {
        return mappingHall.updateHall(modelHall);
    }

    @Override
    public ModelHall queryById(int tid) {
        return mappingHall.queryById(tid);
    }

    @Override
    public List<ModelHall> queryByBroad(int fid) {
        return mappingHall.queryByBroad(fid);
    }
}
